//
//  BaseViewController.h
//  WelfareManager
//
//  Created by timtian on 16/12/23.
//  Copyright © 2016年 timtian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LMViewControllerProtocol.h"

@interface BaseViewController : UIViewController<LMViewControllerProtocol>

@property(nonatomic, strong) UINavigationBar *navigationBar;
@property(nonatomic, strong) UINavigationItem *navItem;

@property(nonatomic,copy)NSString *url;
/** 是否允许侧滑返回,默认YES */
@property(nonatomic, assign, getter=isAllowPopGesture) BOOL allowPopGesture;
/** 是否显示导航栏 */
@property(nonatomic, assign) BOOL showNav;
- (void)createUI;
- (void)setLayout;
-(void)setLeftBarButtonItem:(UIBarButtonItem *)barButtonItem;
-(void)setRightBarButtonItem:(UIBarButtonItem *)barButtonItem;
- (void)setRightItems:(NSArray *)items;
-(void)backAction;

//圆角
+(void)getRoundIcon:(id)sender borderWidth:(float)borderWidth borderColor:(UIColor *)borderColor  cornerRadius:(float)cornerRadius;
@end
